<?php
/*
 *      [Discuz! X] (C)2012-2012 bbs.heirui.cn.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: payview.inc.php 557 2012-06-28 12:20:20Z yanyuxiaoyao $
 */
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}
$cvar= $_G['cache']['plugin']['yy_pay'];
$pid=intval($_GET['pid']);
$cid=intval($_GET['cid']);
if($_G['uid']){
	$loglist = array();
	$query=DB::query("SELECT * FROM ".DB::table("yy_pay_log")." WHERE pl_pid=$pid and pl_cid=$cid ORDER BY pl_id DESC");
	if($query){
		while($log = DB::fetch($query)) {
			//$log['pl_time'] = dgmdate($log['pl_time'], 'u');
			$loglist[] = $log;
		}
	}
	include template('yy_pay:pay_view');
}else{
	showmessage('to_login', NULL, array(), array('login' => 1));
}
?>